//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IVertexBuffer.h>
///	@path	~/src/graphics/
///	@date	2009/01/11
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/RenderContext.h"
#include "graphics/IVertex.h"
#include "graphics/IVertexLayout.h"

namespace xeres {

	/*!
		\class	IVertexBuffer
		\brief	Vertex interface.
	*/
	class IVertexBuffer : public IVertex
	{
	public:

		/// \ctor
		IVertexBuffer( void );

		/// \dtor
		virtual ~IVertexBuffer( void );

		DECL_IOBJECT_INTERFACE( IVertexBuffer , IVertex );

	public:

		/// \name Vertex Buffer Interface
		//@{

		/*! 
			\brief		Get stream count.
		*/
		virtual uint GetStreamCount( void ) = 0;

		/*! 
			\brief		Apply stream.
		*/
		virtual void ApplyStream( RenderContext& rc , uint offset_vertex ) = 0;

		//@}
	};
	
} // namespace xeres
